<?php

namespace App\Http\Controllers\Api;

use Carbon\Carbon;
use App\Models\UserCard;
use App\Models\Wallet;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;

class IndexController extends ApiController
{
    public function index()
    {
        return $this->success(['a' => 1, 'b' => 2]);
    }

    public function test(Request $request)
    {
        echo asset('storage/images/111.jpg');
    }

    public function download()
    {
        return Storage::download('public/apk/Eclothes_V1.0.0_20190826.apk', 'Eclothes_V1.0.0_20190826.apk');
    }

}
